import Layout from '@/layout'

export default {
    // 一级路由的地址
    path: '/subjects',
    // 是用布局作为组件
    component: Layout,
    // 【名称，非常的重要，有可能是作为权限的筛选标识】
    name: 'subjects',
    meta: { title: '学科管理', icon: 'table' },
    children: [{
            path: '',
            component: () =>
                import ('@/views/subjects/list'),
            name: 'list',
            meta: {
                title: '学科',
                icon: 'table'
            }
        },
        {
            path: 'directorys',
            component: () =>
                import ('@/views/subjects/directorys'),
            name: 'student',
            meta: {
                title: '目录',
                icon: 'directorys'
            }
        },
        {
            path: 'tags',
            component: () =>
                import ('@/views/subjects/tags'),
            name: 'tags',
            meta: {
                title: '标签',
                icon: 'table'
            }
        },
    ]
}